##Click

#FAIl
execute unless function vs:system/hub/menu/interaction_box/test/interaction_player_in_config run return run data remove entity @s interaction

#Command
function vs:system/hub/menu/interaction_box/run_click_command with entity @n[tag=hub.menuEntity,distance=..3,type=item_display] item.components."minecraft:custom_data".hubMenu

data remove entity @s interaction